package com.liliudong.pinkyponk.biz.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liliudong.pinkyponk.biz.sys.entity.SysRole;
import com.liliudong.pinkyponk.common.db.annotation.IgnoreDataScope;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * SysRoleMapper
 *
 * @author liliudong
 * @date 2022-06-01 13:06
 **/
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * selectRoleCodesByUserId
     *
     * @param userId
     * @return
     */
    @IgnoreDataScope
    List<SysRole> selectRolesByUserId(Long userId);

}
